package o;

import com.huawei.hms.aaid.constant.AaidIdConstant;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;

public class erd {
    private final aar<sa, String> ˎ = new aar(1000);

    public String ˋ(sa saVar) {
        String str;
        synchronized (this.ˎ) {
            str = (String) this.ˎ.ˏ(saVar);
        }
        if (str == null) {
            try {
                MessageDigest instance = MessageDigest.getInstance(AaidIdConstant.SIGNATURE_SHA256);
                saVar.ॱ(instance);
                str = aau.ˏ(instance.digest());
            } catch (NoSuchAlgorithmException e) {
                Logger.ˋ("SafeKeyGenerator", "getSafeKey NoSuchAlgorithmException!");
            }
            synchronized (this.ˎ) {
                this.ˎ.ˊ(saVar, str);
            }
        }
        return str;
    }
}
